package javax.microedition.lcdui;

import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.image.BufferedImage;

public final class FontImpl implements IFont {
    private Font font;
    private String fontName;
    private int style;
    private int size;
    private int cWidth = 16;
    private int height = 16;
    private int ascent;
    private FontMetrics fontMetrics;

    public FontImpl(String paramString, int paramInt1, int paramInt2) {
        // this.font = new Font(paramString, paramInt2, paramInt1);
        // this.fontMetrics = (new BufferedImage(1, 1,
        // 1)).getGraphics().getFontMetrics(font);
        fontName = paramString;
        size = paramInt1;
        style = paramInt2;
    }

    // public final Font a() {
    // return this.font;
    // }

    public final int charWidth(char paramChar) {
        // return this.fontMetrics.charWidth(paramChar);
        return cWidth;
    }

    public final int stringWidth(String paramString) {
        // return this.fontMetrics.stringWidth(paramString);
        return cWidth * paramString.length();
    }

    public final int getHeight() {
        // return this.fontMetrics.getHeight();
        return height;
    }

    public final int getAscent() {
        // return this.fontMetrics.getAscent();
        return size;

    }
}